revdeck 0.16.1 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/README.md +12 -6
- package/README.ru.md +12 -6
- package/dist/cli.js +9 -5
- package/dist/cli.js.map +2 -2
- package/dist/daemon.js +231 -4
- package/dist/daemon.js.map +4 -4
- package/dist/mcp.js +1 -1
- package/dist/mcp.js.map +1 -1
- package/dist/ui/assets/index-Bd7WadZ2.css +1 -0
- package/dist/ui/assets/index-DNyhbjYn.js +21 -0
- package/dist/ui/index.html +2 -2
- package/docs/architecture.md +2 -1
- package/docs/capabilities.md +9 -3
- package/docs/configuration.md +5 -0
- package/docs/protocol.md +6 -1
- package/docs/ru/architecture.md +2 -1
- package/docs/ru/capabilities.md +9 -3
- package/docs/ru/configuration.md +5 -0
- package/docs/ru/protocol.md +6 -1
- package/docs/ru/threat-model.md +5 -1
- package/docs/threat-model.md +5 -1
- package/package.json +1 -1
- package/dist/ui/assets/index-C5KVhmLm.js +0 -21
- package/dist/ui/assets/index-pbZQ6bv_.css +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,28 @@ All notable changes to this project are documented here. The format is based on
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
|
|
5
5
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [0.17.0] - 2026-11-27
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- Settings has a **GitLab and GitHub access** card: it shows the `glab`/`gh` state for every platform
|
|
12
|
+
host in the project registry and lets you paste a personal access token. The daemon checks the token
|
|
13
|
+
with `GET /user` and passes it to the CLI on stdin, so `glab`/`gh` store it and revdeck keeps no copy;
|
|
14
|
+
the form is disabled when the UI is not served from `127.0.0.1`.
|
|
15
|
+
- RPC methods `auth.status` and `auth.login` (human-only; the devcontainer bridge returns `CAPABILITY`).
|
|
16
|
+
`auth.status` never returns a token, only the host, the account and a hint.
|
|
17
|
+
- `revdeck doctor` checks only the CLI of the project's platform and points to Settings when access is
|
|
18
|
+
missing.
|
|
19
|
+
- Settings persist across daemon restarts: theme, interface language, hidden sections, auto-refresh and
|
|
20
|
+
notifications are stored by the daemon in SQLite (`settings.get`/`settings.put`, human-only) instead
|
|
21
|
+
of the browser's `localStorage`. The UI applies them before the first paint, so there is no theme or
|
|
22
|
+
language flash.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- The access card has a gap between the token input and the buttons, and the host input uses the same
|
|
27
|
+
style as the token input.
|
|
28
|
+
|
|
7
29
|
## [0.16.1] - 2026-11-27
|
|
8
30
|
|
|
9
31
|
### Fixed
|
package/README.md
CHANGED
|
@@ -84,10 +84,11 @@ agent (MCP/CLI) ──unix socket──▶ revdeck daemon ──glab/gh──▶
|
|
|
84
84
|
|
|
85
85
|
## Install
|
|
86
86
|
|
|
87
|
-
Requirements: Node.js ≥ 22.13 (Node 24 LTS recommended — `node:sqlite` is experimental in 22.x), `git`, and
|
|
88
|
-
(`glab
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
Requirements: Node.js ≥ 22.13 (Node 24 LTS recommended — `node:sqlite` is experimental in 22.x), `git`, and the platform CLI
|
|
88
|
+
(`glab` or `gh`) in the daemon's `PATH`. Sign in on the host (`glab auth login` / `gh auth login`), or
|
|
89
|
+
paste a personal access token in the UI: **Settings → GitLab and GitHub access**. The daemon verifies the
|
|
90
|
+
token and hands it to the CLI, which stores it; revdeck never keeps a copy. Set `REVDECK_GLAB` or
|
|
91
|
+
`REVDECK_GH` to an absolute path if the CLI lives in a mise/asdf/homebrew shim or a custom location.
|
|
91
92
|
|
|
92
93
|
```bash
|
|
93
94
|
# one-off
|
|
@@ -446,6 +447,10 @@ found. Full schema: [docs/configuration.md](docs/configuration.md).
|
|
|
446
447
|
`Host`/`Origin` checks and CSP.
|
|
447
448
|
- `glab`/`gh` run without a shell, with `cwd` outside the working copy and a scrubbed environment;
|
|
448
449
|
secrets are redacted from logs and errors.
|
|
450
|
+
- A token pasted in the UI is checked with a `GET /user` request, then passed to `glab`/`gh` on stdin
|
|
451
|
+
(never in argv) and stored by the CLI. revdeck does not keep a copy, `auth.status` returns only the
|
|
452
|
+
host and the account, and `auth.*` is human-only: the bridge answers `CAPABILITY`. The form is
|
|
453
|
+
disabled when the UI is not opened via `127.0.0.1`, because the token would travel over the network.
|
|
449
454
|
- Rule/profile documents must be git-tracked, have a safe extension and are denied for local secrets
|
|
450
455
|
(`.env*`, `.git/**`, `.npmrc`, `.revdeck.local.*`, keys); `.revdeck.local.yml` tracked by git is
|
|
451
456
|
ignored as a repository file. Reads use an opened-fd realpath check to close symlink TOCTOU.
|
|
@@ -456,8 +461,9 @@ found. Full schema: [docs/configuration.md](docs/configuration.md).
|
|
|
456
461
|
- Review text is untrusted data; agent instructions say so explicitly.
|
|
457
462
|
|
|
458
463
|
Details: [docs/threat-model.md](docs/threat-model.md). The guarantee is: the token does not cross the
|
|
459
|
-
sandbox boundary and is not returned over RPC.
|
|
460
|
-
read the
|
|
464
|
+
sandbox boundary and is not returned over RPC. A token entered in the UI is passed straight to the CLI
|
|
465
|
+
and is not kept by revdeck. If a process can read the user's home directory, it can read the CLI
|
|
466
|
+
configuration — isolate the agent.
|
|
461
467
|
|
|
462
468
|
## Architecture
|
|
463
469
|
|
package/README.ru.md
CHANGED
|
@@ -82,10 +82,11 @@ npm install -g revdeck
|
|
|
82
82
|
npx revdeck@latest init
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
Требования: Node.js ≥ 22.13 (рекомендуется Node 24 LTS: в 22.x `node:sqlite` экспериментален), `git
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
Требования: Node.js ≥ 22.13 (рекомендуется Node 24 LTS: в 22.x `node:sqlite` экспериментален), `git` и
|
|
86
|
+
CLI платформы (`glab` или `gh`) в `PATH` демона. Войдите на хосте (`glab auth login` / `gh auth login`)
|
|
87
|
+
или вставьте personal access token в UI: **Настройки → Доступ к GitLab и GitHub**. Демон проверит токен
|
|
88
|
+
и передаст его CLI, который сохранит его у себя; revdeck копию не хранит. Если CLI стоит в
|
|
89
|
+
mise/asdf/homebrew shim или нестандартном месте, задайте `REVDECK_GLAB` или `REVDECK_GH` с абсолютным путём.
|
|
89
90
|
|
|
90
91
|
В проекте:
|
|
91
92
|
|
|
@@ -432,6 +433,10 @@ revdeck ищет `AGENTS.md`, `CLAUDE.md`, `CONTRIBUTING.md` и `docs/*` и пр
|
|
|
432
433
|
проверку `Host`/`Origin` и CSP.
|
|
433
434
|
- `glab`/`gh` вызываются без shell, с `cwd` вне рабочей копии и вычищенным окружением; секреты
|
|
434
435
|
редактируются в логах и ошибках.
|
|
436
|
+
- Токен, вставленный в UI, проверяется запросом `GET /user`, затем уходит в `glab`/`gh` через stdin
|
|
437
|
+
(никогда в argv) и сохраняется самим CLI. revdeck копию не держит, `auth.status` возвращает только
|
|
438
|
+
хост и аккаунт, а `auth.*` доступен только человеку: мост отвечает `CAPABILITY`. Форма отключена,
|
|
439
|
+
если UI открыт не по `127.0.0.1`, — иначе токен пойдёт по сети.
|
|
435
440
|
- Документы правил/профилей должны быть отслеживаемы git, иметь безопасное расширение и не быть
|
|
436
441
|
локальным секретом (`.env*`, `.git/**`, `.npmrc`, `.revdeck.local.*`, ключи); `.revdeck.local.yml`,
|
|
437
442
|
отслеживаемый git, игнорируется как файл репозитория. Чтение проверяет realpath уже открытого fd,
|
|
@@ -443,8 +448,9 @@ revdeck ищет `AGENTS.md`, `CLAUDE.md`, `CONTRIBUTING.md` и `docs/*` и пр
|
|
|
443
448
|
- Текст MR — недоверенные данные; агентские инструкции это оговаривают.
|
|
444
449
|
|
|
445
450
|
Подробно: [docs/ru/threat-model.md](docs/ru/threat-model.md). Гарантия формулируется так: токен не
|
|
446
|
-
пересекает границу песочницы и не отдаётся по RPC.
|
|
447
|
-
|
|
451
|
+
пересекает границу песочницы и не отдаётся по RPC. Токен, введённый в UI, передаётся сразу CLI и не
|
|
452
|
+
остаётся в revdeck. Если у процесса есть чтение домашнего каталога пользователя, он может прочитать
|
|
453
|
+
конфигурацию `glab`/`gh` — для этого и нужна изоляция агента.
|
|
448
454
|
|
|
449
455
|
## Архитектура
|
|
450
456
|
|
package/dist/cli.js
CHANGED
|
@@ -811,7 +811,7 @@ var VERSION;
|
|
|
811
811
|
var init_version = __esm({
|
|
812
812
|
"src/version.ts"() {
|
|
813
813
|
"use strict";
|
|
814
|
-
VERSION = "0.
|
|
814
|
+
VERSION = "0.17.0";
|
|
815
815
|
}
|
|
816
816
|
});
|
|
817
817
|
|
|
@@ -5058,9 +5058,11 @@ async function doctor(root) {
|
|
|
5058
5058
|
]);
|
|
5059
5059
|
}
|
|
5060
5060
|
let host;
|
|
5061
|
+
let providerType = "auto";
|
|
5061
5062
|
try {
|
|
5062
5063
|
const loaded = await loadConfig(root);
|
|
5063
5064
|
host = loaded.config.provider.host ?? (await gitRemote(root))?.host;
|
|
5065
|
+
providerType = loaded.config.provider.type;
|
|
5064
5066
|
rows.push(["config", loaded.path ? "ok" : "warn", loaded.path ?? tr("\u043D\u0435\u0442 .revdeck.yml (\u0430\u0432\u0442\u043E\u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0438\u0435)", "no .revdeck.yml (auto-discovery)")]);
|
|
5065
5067
|
if (loaded.localPath) rows.push(["local config", "ok", loaded.localPath]);
|
|
5066
5068
|
for (const warning of loaded.warnings) rows.push(["warning", "warn", warning]);
|
|
@@ -5068,20 +5070,22 @@ async function doctor(root) {
|
|
|
5068
5070
|
rows.push(["config", "fail", redactLine(error)]);
|
|
5069
5071
|
}
|
|
5070
5072
|
if (!container) {
|
|
5071
|
-
|
|
5073
|
+
const platform = providerType !== "auto" ? providerType : detectPlatform(host ?? "");
|
|
5074
|
+
const uiHint = tr("\u0438\u043B\u0438 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u043E\u043A\u0435\u043D \u0432 UI: \u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u2192 \u0414\u043E\u0441\u0442\u0443\u043F", "or paste a token in the UI: Settings \u2192 Access");
|
|
5075
|
+
if (host && binaries.glab && platform !== "github") {
|
|
5072
5076
|
try {
|
|
5073
5077
|
await run("glab", ["auth", "status", "--hostname", host], { timeoutMs: 15e3 });
|
|
5074
5078
|
rows.push(["glab auth", "ok", host]);
|
|
5075
5079
|
} catch (error) {
|
|
5076
|
-
rows.push(["glab auth", "warn", `${tr("\u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u043A", "no access to")} ${host}: ${redactLine(error).slice(0, 120)}`]);
|
|
5080
|
+
rows.push(["glab auth", "warn", `${tr("\u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u043A", "no access to")} ${host}: ${redactLine(error).slice(0, 120)}; ${uiHint}`]);
|
|
5077
5081
|
}
|
|
5078
5082
|
}
|
|
5079
|
-
if (host && binaries.gh) {
|
|
5083
|
+
if (host && binaries.gh && platform !== "gitlab") {
|
|
5080
5084
|
try {
|
|
5081
5085
|
await run("gh", ["auth", "status"], { timeoutMs: 15e3, env: { GH_HOST: host } });
|
|
5082
5086
|
rows.push(["gh auth", "ok", host]);
|
|
5083
5087
|
} catch (error) {
|
|
5084
|
-
rows.push(["gh auth", "warn", `${tr("\u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u043A", "no access to")} ${host}: ${redactLine(error).slice(0, 120)}`]);
|
|
5088
|
+
rows.push(["gh auth", "warn", `${tr("\u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u043A", "no access to")} ${host}: ${redactLine(error).slice(0, 120)}; ${uiHint}`]);
|
|
5085
5089
|
}
|
|
5086
5090
|
}
|
|
5087
5091
|
}
|